<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "mobile_detail".
 *
 * @property int $id id
 * @property string $mobile 手机号
 * @property string $province 省
 * @property string $operator 运营商，移动，电信，联通等
 * @property string $created_at 创建时间
 */
class MobileDetail extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'mobile_detail';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['mobile', 'province', 'operator'], 'string', 'max' => 20],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'id'),
            'mobile' => Yii::t('app', '手机号'),
            'province' => Yii::t('app', '省'),
            'operator' => Yii::t('app', '运营商，移动，电信，联通等'),
            'created_at' => Yii::t('app', '创建时间'),
        ];
    }
}
